import request from '@/utils/request'

// 导出信息为Excel
export function exportExcel(id) {
  return request({ 
    url: "/admin/preparatory/apply/member/exportExcel/" + id,
    method: "GET",
    responseType: "blob"
  })
}

// 导出信息为PDF
export function exportPDF(id) {
  return request({ 
    url: `/admin/preparatory/apply/member/exportPDF/` + id,
    method: "GET",
    responseType: "blob"
  })
}

// 分页条件查询
export function queryInfo(params) {
  return request({ 
    url: `/admin/preparatory/apply/members`,
    method: "GET",
    params: params
  })
}
// 批量同意申请
export function agreeApply(idString) {
  return request({ 
    url: `/admin/preparatory/apply`,
    method: "PUT",
    data: idString
  })
}

// 获取各个学院的总人数信息
export function collegeCount() {
  return request({ 
    url: `/admin/preparatory/apply/members/college`,
    method: "GET",
  })
}





